﻿package ${serviceImpl.packageName};

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import ${entity.basePackage}.Base${entity.baseType}Dao;
import ${entity.basePackage}.Base${entity.baseType}ServiceImpl;
import ${entity.fullName};
import ${mapper.packageName}.${entity.name}${mapperSuffix};
import ${service.packageName}.${entity.name}Service;

/** 
 * ${entity.comment}接口实现类
 *
 * @author ${entity.author}
 *
 * @since ${entity.time}
 */
@Service
public class ${entity.name}ServiceImpl extends Base${entity.baseType}ServiceImpl<${entity.name}, ${entity.idAttr.type}> implements ${entity.name}Service{

	@Resource
	private ${entity.name}${mapperSuffix} ${entity.simpleName}${mapperSuffix};
	
	/**
	 * 初始化DAO
	 */
	@Override
	protected Base${entity.baseType}Dao<${entity.name}, ${entity.idAttr.type}> getDao() {
		return ${entity.simpleName}${mapperSuffix};
	}
    

}